package com.xls.commonlibrary.util;

import android.app.Activity;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.text.TextUtils;

import static com.xls.commonlibrary.constant.Const.MMKV_GAME_TYPE;

/**
 * @author lhx
 * @description:
 * @date : 2024/7/8 16:05
 */
public class AppUtils {
    public static String getGuanHuaiURL(Activity activity) throws PackageManager.NameNotFoundException {
        //        项目配置关怀版链接才存储关怀版开关
        ApplicationInfo appInfo = activity.getPackageManager().getApplicationInfo(activity.getPackageName(), PackageManager.GET_META_DATA);
        if (appInfo!=null){
            String data = appInfo.metaData.getString("guanhuai_url");
            return data;
        }
        return "";
    }
}
